package com.fengyi.homefurnish.mapper;

import com.fengyi.homefurnish.pojo.CouponsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 卡券接口
 */
@Mapper
public interface CouponsInfoMapper {

    /**
     * 根据条件分页查询属性名
     * @param offset
     * @param limit
     * @param couponsInfo
     * @return
     */
    List<CouponsInfo> getCouponsByPager(@Param("offset")Integer offset, @Param("limit")Integer limit, @Param("condition") CouponsInfo couponsInfo);

    /**
     * 条件查询总数
     * @param couponsInfo
     * @return
     */
    Integer getCouponsTotal(@Param("condition")CouponsInfo couponsInfo);
}
